\documentclass[twoside]{book}

% Packages required by doxygen
\usepackage{fixltx2e}
\usepackage{calc}
\usepackage{doxygen}
\usepackage[export]{adjustbox} % also loads graphicx
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{makeidx}
\usepackage{multicol}
\usepackage{multirow}
\PassOptionsToPackage{warn}{textcomp}
\usepackage{textcomp}
\usepackage[nointegrals]{wasysym}
\usepackage[table]{xcolor}

% Font selection
\usepackage[T1]{fontenc}
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
\usepackage{amssymb}
\usepackage{sectsty}
\renewcommand{\familydefault}{\sfdefault}
\allsectionsfont{%
  \fontseries{bc}\selectfont%
  \color{darkgray}%
}
\renewcommand{\DoxyLabelFont}{%
  \fontseries{bc}\selectfont%
  \color{darkgray}%
}
\newcommand{\+}{\discretionary{\mbox{\scriptsize$\hookleftarrow$}}{}{}}

% Page & text layout
\usepackage{geometry}
\geometry{%
  a4paper,%
  top=2.5cm,%
  bottom=2.5cm,%
  left=2.5cm,%
  right=2.5cm%
}
\tolerance=750
\hfuzz=15pt
\hbadness=750
\setlength{\emergencystretch}{15pt}
\setlength{\parindent}{0cm}
\setlength{\parskip}{0.2cm}
\makeatletter
\renewcommand{\paragraph}{%
  \@startsection{paragraph}{4}{0ex}{-1.0ex}{1.0ex}{%
    \normalfont\normalsize\bfseries\SS@parafont%
  }%
}
\renewcommand{\subparagraph}{%
  \@startsection{subparagraph}{5}{0ex}{-1.0ex}{1.0ex}{%
    \normalfont\normalsize\bfseries\SS@subparafont%
  }%
}
\makeatother

% Headers & footers
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhead[LE]{\fancyplain{}{\bfseries\thepage}}
\fancyhead[CE]{\fancyplain{}{}}
\fancyhead[RE]{\fancyplain{}{\bfseries\leftmark}}
\fancyhead[LO]{\fancyplain{}{\bfseries\rightmark}}
\fancyhead[CO]{\fancyplain{}{}}
\fancyhead[RO]{\fancyplain{}{\bfseries\thepage}}
\fancyfoot[LE]{\fancyplain{}{}}
\fancyfoot[CE]{\fancyplain{}{}}
\fancyfoot[RE]{\fancyplain{}{\bfseries\scriptsize 生成于 2015年 七月 27日 星期一 14\+:33\+:21 , 为 knet使用  Doxygen }}
\fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize 生成于 2015年 七月 27日 星期一 14\+:33\+:21 , 为 knet使用  Doxygen }}
\fancyfoot[CO]{\fancyplain{}{}}
\fancyfoot[RO]{\fancyplain{}{}}
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\chaptermark}[1]{%
  \markboth{#1}{}%
}
\renewcommand{\sectionmark}[1]{%
  \markright{\thesection\ #1}%
}

% Indices & bibliography
\usepackage{natbib}
\usepackage[titles]{tocloft}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{5}
\makeindex

% Hyperlinks (required, but should be loaded last)
\usepackage{ifpdf}
\ifpdf
  \usepackage[pdftex,pagebackref=true]{hyperref}
\else
  \usepackage[ps2pdf,pagebackref=true]{hyperref}
\fi
\hypersetup{%
  colorlinks=true,%
  linkcolor=blue,%
  citecolor=blue,%
  unicode%
}

% Custom commands
\newcommand{\clearemptydoublepage}{%
  \newpage{\pagestyle{empty}\cleardoublepage}%
}


%===== C O N T E N T S =====

\begin{document}

% Titlepage & ToC
\hypersetup{pageanchor=false,
             bookmarks=true,
             bookmarksnumbered=true,
             pdfencoding=unicode
            }
\pagenumbering{roman}
\begin{titlepage}
\vspace*{7cm}
\begin{center}%
{\Large knet \\[1ex]\large 1.\+4.\+5 }\\
\vspace*{1cm}
{\large 制作者 Doxygen 1.8.9.1}\\
\vspace*{0.5cm}
{\small 2015年 七月 27日 星期一 14:33:21}\\
\end{center}
\end{titlepage}
\clearemptydoublepage
\tableofcontents
\clearemptydoublepage
\pagenumbering{arabic}
\hypersetup{pageanchor=true}

%--- Begin generated contents ---
\chapter{模块索引}
\input{modules}
\chapter{结构体索引}
\input{annotated}
\chapter{文件索引}
\input{files}
\chapter{模块说明}
\input{a00116}
\include{a00117}
\include{a00111}
\include{a00123}
\include{a00122}
\include{a00112}
\include{a00114}
\include{a00115}
\include{a00120}
\include{a00113}
\include{a00121}
\include{a00124}
\include{a00118}
\include{a00119}
\chapter{结构体说明}
\input{a00001}
\input{a00002}
\input{a00003}
\input{a00004}
\input{a00005}
\input{a00006}
\input{a00007}
\input{a00008}
\input{a00009}
\input{a00010}
\input{a00011}
\input{a00012}
\input{a00013}
\input{a00014}
\input{a00015}
\input{a00016}
\input{a00017}
\input{a00018}
\input{a00019}
\input{a00020}
\input{a00021}
\input{a00022}
\input{a00023}
\input{a00024}
\input{a00025}
\input{a00026}
\input{a00027}
\input{a00028}
\input{a00029}
\input{a00030}
\input{a00031}
\input{a00032}
\input{a00033}
\input{a00034}
\input{a00035}
\input{a00036}
\input{a00037}
\input{a00038}
\input{a00039}
\input{a00040}
\input{a00041}
\input{a00042}
\input{a00043}
\chapter{文件说明}
\input{a00044}
\input{a00045}
\input{a00046}
\input{a00047}
\input{a00048}
\input{a00049}
\input{a00050}
\input{a00051}
\input{a00052}
\input{a00053}
\input{a00054}
\input{a00055}
\input{a00056}
\input{a00057}
\input{a00058}
\input{a00059}
\input{a00060}
\input{a00061}
\input{a00062}
\input{a00063}
\input{a00064}
\input{a00065}
\input{a00066}
\input{a00067}
\input{a00068}
\input{a00069}
\input{a00070}
\input{a00071}
\input{a00072}
\input{a00073}
\input{a00074}
\input{a00075}
\input{a00076}
\input{a00077}
\input{a00078}
\input{a00079}
\input{a00080}
\input{a00081}
\input{a00082}
\input{a00083}
\input{a00084}
\input{a00085}
\input{a00086}
\input{a00087}
\input{a00088}
\input{a00089}
\input{a00090}
\input{a00091}
\input{a00092}
\input{a00093}
\input{a00094}
\input{a00095}
\input{a00096}
\input{a00097}
\input{a00098}
\input{a00099}
\input{a00100}
\input{a00101}
\input{a00102}
\input{a00103}
\input{a00104}
\input{a00105}
\input{a00106}
\input{a00107}
\input{a00108}
\input{a00109}
\input{a00110}
%--- End generated contents ---

% Index
\backmatter
\newpage
\phantomsection
\clearemptydoublepage
\addcontentsline{toc}{chapter}{索引}
\printindex

\end{document}
